//
//  MyDefination.h
//  Junana
//
//  Created by HuanND on 8/4/11.
//  Copyright 2011 Vitalify. All rights reserved.
//

#ifndef YAJL_AVAILABLE
#define YAJL_AVAILABLE 1
#endif


////////////////////////////////////////////////////////////////////////////////////
/* Safe Release */
#define SAFE_RELEASE_OBJECT(p)				{ if (p) { [(p) release]; (p) = nil;  } }
#define SAFE_RELEASE_VIEW(p)                { if (p) { [(p) removeFromSuperview]; [(p) release]; (p) = nil;  } }
#define SAFE_RELEASE_ARRAY(p)               { if (p) { [(p) removeAllObjects]; [(p) release]; (p) = nil;  } }


/* Pool Release */
#define POOL_START                          NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
#define POOL_END                            [pool drain];


/* Remove space */
#define REMOVE_WHITESPACE(p) [(p) stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];


/* API */
#define URL_island @"http://360islandevents.com"
#define URL_island_API @"http://360islandevents.com/api/"
#define URL_island_front @"http://360islandevents.com/front/"
#define TOKEN__island @"?api_token=4d50a7f525245db890218329b518f0edc0d7f8f7"
#define TOKEN_ACCESS @"&access_token="
#define categories_API @"categories/"
#define category_events_API @"categories/events/id/"
#define events_API @"events/"
#define faqs_API @"faqs/"
#define sliders_API @"sliders/"
#define countries_API @"countries/"
#define search_API @"search/"
#define signup_API @"users/signup/"
#define signin_API @"users/signin/"
#define forgotPassword_API @"users/forgot/"
#define resetpassword_API @"users/reset/"
#define user_event_API @"users/events/"


#define access_token_eTicket_userDefault @"access_token_eTicket_userDefault"
#define LOGINED @"LONINED"
#define Login_name @"Login_name"

#define kBgQueue dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)

/* Slider Home*/
#define IMAGE_SLIDER_TAG 1000


/* Other */
#define ALERT_MESSAGE 7000
#define ALERT_SLIDER_HOME 7100
#define ALERT_LISTEVENT_HOME 7200
#define ALERT_COMBOBOX_FINDEVENT 7300 
#define ALERT_REGISTER 7400

////////////////////////////////////////////////////////////////////////////////////